﻿import unittest
from selenium import webdriver
from Framework.PageClasses.CpLogin import CpLogin
from Tests._tcBase import _tcBase

class CheckTitle(unittest.TestCase, _tcBase):

    def setUp(self):
        _tcBase.setUp(self) 
            
    def tearDown(self):
        _tcBase.tearDown(self)

    def test_CheckTitle(self):
        pageLogin = CpLogin(self.driver)
        pageLogin.open(self.driver, pageLogin.url)
        self.assertIn(u'ОАО "Единая электронная торговая площадка', self.driver.title)
        
if __name__ == '__main__':
        unittest.main()